import request from '@/utils/request'
// api地址
const api = {
	prePayment: 'api/payment/prePayment',
	getPayList: 'api/pay/payList',
	pay:'api/pay/pay'
}
// 创建预支付
export function prePayment(data) {
	return request.post(api.prePayment, data)
}
// 支付列表
export const getPayList = (data) => {
	return request.get(api.getPayList, data)
}
// 支付
export const pay = (data) => {
	return request.post(api.pay, data)
}